'use strict';
const userRouter = require('./routers/user');
const homeRouter = require('./routers/home');
const uploadRouter = require("./routers/upload");
const personRouter = require("./routers/person");
/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router } = app;
  router.all("/api/app/**", app.middlewares.auth(app));
  userRouter(app);
  homeRouter(app);
  uploadRouter(app);
  personRouter(app);
};
